package com.nuc.service.impl;

import com.nuc.mapper.NewsMapper;
import com.nuc.pojo.News;
import com.nuc.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Zhang Chao
 * @Date 2021/5/12 10:35
 * @Version 1.0
 */

@Service
public class NewsServiceImpl implements NewsService {

    @Resource
    NewsMapper newsMapper ;

    @Override
    public List<News> getAllNews() {
        return newsMapper.getAllNews();
    }
}
